﻿namespace KxApp.Chart
{
    public class ApiData
    {
        public bool Bool1 { get; set; }
        public bool Bool2 { get; set; }
        public bool Bool3 { get; set; }
        public bool Bool4 { get; set; }
        public bool Bool5 { get; set; }
        public bool Bool6 { get; set; }
        public bool Bool7 { get; set; }
        public bool Bool8 { get; set; }
        public bool Bool9 { get; set; }
        public bool Bool10 { get; set; }
        public bool Bool11 { get; set; }
        public bool Bool12 { get; set; }
        public bool Bool13 { get; set; }
        public bool Bool14 { get; set; }
        public bool Bool15 { get; set; }
        public bool Bool16 { get; set; }

        public bool Bool17 { get; set; }
        public bool Bool18 { get; set; }
        public bool Bool19 { get; set; }
        public bool Bool20 { get; set; }
        public bool Bool21 { get; set; }
        public bool Bool22 { get; set; }
        public bool Bool23 { get; set; }
        public bool Bool24 { get; set; }
        public bool Bool25 { get; set; }
        public bool Bool26 { get; set; }
        public bool Bool27 { get; set; }
        public bool Bool28 { get; set; }
        public bool Bool29 { get; set; }
        public bool Bool30 { get; set; }
        public bool Bool31 { get; set; }
        public bool Bool32 { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public short Short1 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public short Short2 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short Short3 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public short Short4 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public short Short5 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public short Short6 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public short Short7 { get; set; }


        /// <summary>
        /// 
        /// </summary>
        public short Short8 { get; set; }
        /// <summary>
        /// 
        /// </summary>

        public short Short9 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public short Short10 { get; set; }

        /// <summary>
        /// 
        /// </summary>

        public short Short11 { get; set; }

        public short Short12 { get; set; }
        public short Short13 { get; set; }
        public short Short14 { get; set; }
        public short Short15 { get; set; }

        /// <summary>
        /// 触发
        /// </summary>
        public short Short16 { get; set; }

        /// <summary>
        /// 保护气流量
        /// </summary>
        public short Short17 { get; set; }
        /// <summary>
        /// 保护气消耗
        /// </summary>
        public short Short18 { get; set; }

        /// <summary>
        /// 产量统计
        /// </summary>
        public short Short19 { get; set; }
        /// <summary>
        /// 封头产量
        /// </summary>
        public short Short20 { get; set; }

        /// <summary>
        /// 支座产量
        /// </summary>
        public short Short21 { get; set; }
        public short Short22 { get; set; }
        public short Short23 { get; set; }
        public short Short24 { get; set; }
        public short Short25 { get; set; }
        public short Short26 { get; set; }
        public short Short27 { get; set; }
        public short Short28 { get; set; }
        public short Short29 { get; set; }
        public short Short30 { get; set; }
        public short Short31 { get; set; }
        public short Short32 { get; set; }

        public float Float1 { get; set; }
        public float Float2 { get; set; }
        public float Float3 { get; set; }
        public float Float4 { get; set; }
        public float Float5 { get; set; }
        public float Float6 { get; set; }
        public float Float7 { get; set; }
        public float Float8 { get; set; }
        public float Float9 { get; set; }
        public float Float10 { get; set; }
        public float Float11 { get; set; }
        public float Float12 { get; set; }
        public float Float13 { get; set; }
        public float Float14 { get; set; }
        public float Float15 { get; set; }
        public float Float16 { get; set; }

        public float Float17 { get; set; }
        public float Float18 { get; set; }
        public float Float19 { get; set; }
        public float Float20 { get; set; }
        public float Float21 { get; set; }
        public float Float22 { get; set; }
        public float Float23 { get; set; }
        public float Float24 { get; set; }
        public float Float25 { get; set; }
        public float Float26 { get; set; }
        public float Float27 { get; set; }
        public float Float28 { get; set; }
        public float Float29 { get; set; }
        public float Float30 { get; set; }
        public float Float31 { get; set; }
        public float Float32 { get; set; }


        public short Short101 { get; set; }
        public short Short102 { get; set; }
        public short Short103 { get; set; }
        public short Short104 { get; set; }
        public short Short105 { get; set; }
        public short Short106 { get; set; }
        public short Short107 { get; set; }
        public short Short108 { get; set; }
        public short Short109 { get; set; }
        public short Short1010 { get; set; }
        public short Short1011 { get; set; }
        public short Short1012 { get; set; }
        public short Short1013 { get; set; }
        public short Short1014 { get; set; }
        public short Short1015 { get; set; }
        public short Short1016 { get; set; }
        public short Short1017 { get; set; }
        public short Short1018 { get; set; }
        public short Short1019 { get; set; }
        public short Short1020 { get; set; }
        public short Short1021 { get; set; }
        public short Short1022 { get; set; }
        public short Short1023 { get; set; }
        public short Short1024 { get; set; }
        public short Short1025 { get; set; }
        public short Short1026 { get; set; }
        public short Short1027 { get; set; }
        public short Short1028 { get; set; }
        public short Short1029 { get; set; }
        public short Short1030 { get; set; }
        public short Short1031 { get; set; }
        public short Short1032 { get; set; }

        public float Float101 { get; set; }
        public float Float102 { get; set; }
        public float Float103 { get; set; }
        public float Float104 { get; set; }
        public float Float105 { get; set; }
        public float Float106 { get; set; }
        public float Float107 { get; set; }
        public float Float108 { get; set; }
        public float Float109 { get; set; }
        public float Float1010 { get; set; }
        public float Float1011 { get; set; }
        public float Float1012 { get; set; }
        public float Float1013 { get; set; }
        public float Float1014 { get; set; }
        public float Float1015 { get; set; }
        public float Float1016 { get; set; }

        public float Float1017 { get; set; }
        public float Float1018 { get; set; }
        public float Float1019 { get; set; }
        public float Float1020 { get; set; }
        public float Float1021 { get; set; }
        public float Float1022 { get; set; }
        public float Float1023 { get; set; }
        public float Float1024 { get; set; }
        public float Float1025 { get; set; }
        public float Float1026 { get; set; }
        public float Float1027 { get; set; }
        public float Float1028 { get; set; }
        public float Float1029 { get; set; }
        public float Float1030 { get; set; }
        public float Float1031 { get; set; }
        public float Float1032 { get; set; }

        public string Str1 { get; set; } = string.Empty;

        public string Str2 { get; set; } = string.Empty;

        public short BLC(short s)
        {
            byte high1 = (byte)((s - s % 256) / 256);
            byte low1 = (byte)(s % 256);
            byte[] change1 = { high1, low1 };
            return BitConverter.ToInt16(change1);
        }
    }
}
